package org.linlinjava.litemall.db.service;

import java.time.LocalDateTime;

import javax.annotation.Resource;

import com.github.yulichang.base.MPJBaseServiceImpl;
import org.linlinjava.litemall.db.dao.LitemallMessageReceiverMapper;
import org.linlinjava.litemall.db.domain.LitemallMessageReceiver;
import org.springframework.stereotype.Service;

@Service
public class LitemallMessageReceiverService extends MPJBaseServiceImpl<LitemallMessageReceiverMapper,LitemallMessageReceiver> {
    @Resource
    private LitemallMessageReceiverMapper litemallMessageReceiverMapper;

    public void create(LitemallMessageReceiver litemallMessage){
        litemallMessage.setAddTime(LocalDateTime.now());
        litemallMessageReceiverMapper.insertSelective(litemallMessage);
    }

}
